package com.drg.center.entity.param;

import com.guaike.core.entity.annotation.IsDictValue;
import com.guaike.core.entity.constant.DictCodeConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @Author: zhangxilin
 * @Date: 2024/5/21
 */
@Data
@ApiModel("添加系统入参")
public class SysIndexAddDTO implements Serializable {

    @ApiModelProperty("系统编号")
    @NotBlank(message = "系统编号不能为空")
    private String sysCode;

    @ApiModelProperty("系统名称")
    @NotBlank(message = "系统名称不能为空")
    private String sysName;

    @ApiModelProperty("状态(字典码:10002)")
    @IsDictValue(code= DictCodeConstant.ENABLE_OR_DISABLE, message = "状态传参不合法")
    private Integer status;

    @ApiModelProperty("站点类型（字典码:10005)")
    @IsDictValue(code= DictCodeConstant.SITE_TYPE, ignoreNull = true,message = "站点类型传参不合法")
    private Integer siteType;

    @ApiModelProperty("站点链接")
    private String siteUrl;

    @ApiModelProperty("排序字段")
    private Integer sortIndex;

    @ApiModelProperty("系统图标类型（0:站内图标,1:站外图标）")
    private Integer iconType;

    @ApiModelProperty("图标地址")
    private String icon;
}
